package com.util;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/25 11:21
 * @since JDK 1.8
 */
@Configuration
@Order(1)
public class BeanCommon {

    @Bean("dbmap")
    public Map<String, String> getDBMapString(){
        System.out.println("====>");
        Map<String, String> stringHashMap=new HashMap<>();
        PropertiesUtils.loadProperties("DB",stringHashMap);
        return stringHashMap;
    }

//    @Bean
//    public void init(){
//        DBtemp.tempDB();
//    }
}
